package com.kaishengit.service;

import com.kaishengit.dao.UserDao;
import com.kaishengit.entity.User;

public class UserService {
	
	UserDao userdao=new UserDao();
	public User login(User user){
		return userdao.findByUserNameAndPassword(user.getUsername(), user.getPassword());
	}

}
